<link href="../addons/jy_newcar/custom/templates/mobile/style.css?v=201905251730" rel="stylesheet">
<style>
.fui-tab a{
    color: #eee;
}
.fui-tab:after {
    height: 0;
    background: none;
}
.fui-tab.fui-tab-success a.active {
    color: #fff;
	font-weight:bold;
}
.banyuan{
	padding:0.5rem;
	height: 7rem;
	border-radius: 7rem 7rem 0 0;
	border: 4px solid #f60;
}
</style>
<div class="fui-page fui-page-current page-commission-down">
	<div ng-include="sys_html('_goback')"></div>
    <div class="fui-content">
	<div style="background: {{main.syscolor||'#05c175'}};padding:0.5rem;margin-top:0;padding-bottom:1.6rem;height:5rem">
		<div class="fui-tab fui-tab-success" style="background:none">
			<a class="active" href="javascript:;">{{pagedata.tuilog.sn}}推广组-分期奖励</a>
		</div>
	</div>
	<div style="padding:0.5rem;margin-top:-2.3rem">
		<div class="fui-cell-group" style='margin-top:0px;'>
			<div class="fui-cell c" style="margin:0;padding:0.3rem;background:#f2f2f2">
				<div class="fui-cell-text" style="font-size:0.65rem;">
					<span>分期</span>
				</div>
				<div class="fui-cell-text" style="font-size:0.65rem;">
					<span>奖励</span>
				</div>
				<div class="fui-cell-text" style="font-size:0.65rem;">
					<span>状态</span>
				</div>
				<div class="fui-cell-text" style="font-size:0.65rem;">
					<span>凭据</span>
				</div>
			</div>
			<div class="fui-cell c" style="margin:0;padding:0.3rem;" ng-repeat="item in pagedata.list">
				<div class="fui-cell-text" style="font-size:0.65rem;">
					<span>#{{item.no}}({{item.month}})</span>
				</div>
				<div class="fui-cell-text" style="font-size:0.65rem;">
					<span>{{item.money}}</span>
				</div>
				<div class="fui-cell-text" style="font-size:0.55rem;">
					<span>{{item.statustitle}}</span>
				</div>
				<div class="fui-cell-text" style="font-size:0.60rem;">
					<span class="syscolor" ng-if="item.status==2" ng-click="pagedata.now_logimg=item.image;pagedata.show_logimg=true">查看凭据</span>
					<!--<span class="syscolor" ng-if="item.status==1 && item.cantx==1" ng-click="pagedata.nowitem=item;pagedata.post.yufeeid=item.id;pagedata.showtixian=true">申请提现</span>
					<span class="gray" ng-if="item.status==1 && item.cantx!=1">待提现</span>-->
				</div>
			</div>
        </div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i>
			<br/>
			<p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>
	</div>
	<div ng-include="sys_html('common/_copyright',true)"></div>
    </div>
</div>
<div ng-if="pagedata.show_logimg" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" ng-click="pagedata.show_logimg=false"></i>
			<div class="content-images" style="padding:0.5rem;height:20rem; overflow-y:scroll;">
					<div class="title bold" style="font-size:0.8rem">[预览]凭证</div>
					<div class="text" style="padding-top:0.5rem;font-size:0.7rem">
						<img style="width:100%" ng-src="{{tomedia(pagedata.now_logimg)}}">
					</div>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showtixian" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showtixian=false"></i>
			<div class='fui-content' >
				<div class='fui-cell-group fui-cell-group-o' style="margin:0">
					<div class='fui-cell'>
						<div class='fui-cell-label big' style='width:auto;'>提现金额：￥{{pagedata.nowitem.money}}</div>
						<div class='fui-cell-info'>
						</div>
					</div>
					<div class="fui-cell">
						<div class="fui-cell-label" style="width: 120px;"><span class="re-g">提现方式</span></div>
						<div class="fui-cell-info">
							<select id="applytype" ng-model="pagedata.post.pay_type">
								<option ng-repeat="(k,title) in pagedata.pay_types" value="{{k}}" ng-selected="pagedata.post.pay_type==k">{{title}}</option>
							</select>
						</div>
						<div class="fui-cell-remark"></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='downline'" class="fui-cell alipay-group">
						<div class="fui-cell-label" style="width: 120px;">微信号</div>
						<div class="fui-cell-info">
						<input type="text" id="wechat" name="wechat" class='fui-input' ng-model="pagedata.post.wechat" max="25"/>
						</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay' || (pagedata.post.type=='union' && pagedata.post.isapi!=1)" class="fui-cell ab-group">
						<div class="fui-cell-label" style="width: 120px;">真实姓名</div>
						<div class="fui-cell-info"><input type="text" id="realname" name="realname" ng-model="pagedata.post.realname" class='fui-input' max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
						<div class="fui-cell-label" style="width: 120px;">支付宝帐号</div>
						<div class="fui-cell-info">
						<input type="text" id="alipay" name="alipay" class='fui-input' ng-model="pagedata.post.alipay" max="25"/>
						</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
							<div class="fui-cell-label" style="width: 120px;">确认帐号</div>
							<div class="fui-cell-info"><input type="text" id="alipay1" ng-model="pagedata.post.alipay1" name="alipay1" class='fui-input' max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type=='union' && pagedata.post.isapi==1 && pagedata.post.isapibank!=1" class="c" style="padding-top:0.5rem">
						<div class='btn btn-sm btn-danger-o external' style="border-radius: 100px;width:  7rem;font-size: .75rem" ng-click="access_json('core/member.bankup/')"><i class="icon icon-tianjia"></i> 绑定银行卡</div>
					</div>
					<div ng-if="pagedata.post.pay_type=='union' && pagedata.post.isapi==1 && pagedata.post.isapibank==1" class="fui-cell alipay-group">
						<div class="fui-cell-label" style="width: 120px;">已绑银行卡</div>
							<div class="fui-cellone-info">
							<div class="title"><span class='realname'>{{pagedata.post.realname}}</span> <span class='mobile'>{{pagedata.post.mobile}}</span></div>
							<div class="text"><span class='address'>{{pagedata.post.bankname}}&nbsp{{pagedata.post.bankcard}}</span></div>
						</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union' && pagedata.post.isapi!=1" class="fui-cell bank-group" >
							<div class="fui-cell-label" style="width: 120px;">所属银行</div>
							<div class="fui-cell-info">
								<input type="text" name="bankname" class='fui-input' ng-model="pagedata.post.bankname"/>
								<div class="help" style="font-size:0.6rem">例如:工商银行深圳分行</div>
							</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union' && pagedata.post.isapi!=1" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">银行卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard" name="bankcard" class='fui-input' ng-model="pagedata.post.bankcard" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union' && pagedata.post.isapi!=1" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">确认卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard1" name="bankcard1" class='fui-input' ng-model="pagedata.post.bankcard1" max="25"/></div>
					</div>
					<div class="fui-cell alipay-group">
						<div class="fui-cell-label" style="width: 120px;">联系电话</div>
						<div class="fui-cell-info">
						<input type="text" id="mobile" name="mobile" class='fui-input' ng-model="pagedata.post.mobile" max="25"/>
						</div>
					</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title disabled'>提现手续费为 <text class='text-danger'> {{pagedata.pluginset.balance_per || 0}}</text>%</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现将扣除手续费 ￥<text class='text-danger'> {{pagedata.nowitem.service_money || '0.00'}}</text>
					</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现实际到账金额 ￥<text class='text-danger'> {{pagedata.nowitem.cash_money || '0.00'}}</text>
					</div>
				</div>
				<a id='btn-next' class='btn btn-success block' ng-click="post(pagedata.post,'/gou.yufee/balance/')">提现</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('gou/_footer')"></div>
<script>
scope.tool.get_list('jy_newcar/gou.yufee/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_newcar/gou.yufee/list/');
}
</script>

